package com.bw.goods.mvvm.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bw.goods.R;
import com.bw.goods.mvvm.model.entity.CategoryrightEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/18 0018 上午 11:21
 *
 */
class CategoryrightAdapter extends BaseQuickAdapter<CategoryrightEntity.DataBean, BaseViewHolder> {
    public CategoryrightAdapter( ) {
        super(R.layout.categoryright_item);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, CategoryrightEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.categoryright_text, dataBean.getCategory_name());
        Glide.with(getContext()).load(dataBean.getCategory_icon())
                .into((ImageView) baseViewHolder.getView(R.id.categoryright_img));
    }
}
